package com.wires.lu.practice.oom;

import java.util.Random;

/**
 * 堆溢出
 */
public class OutOfMemoryErrorDemo {

    public static void main(String[] args) {

        String str="atguigu";
        while(true){
            str+=str+new Random().nextInt(1111111)+new Random().nextInt(22222222);
            str.intern();
        }
    }
}
